package com.yc.cloud.admin.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "custom.mediakit")
public class MediaKitProperties {

    private String scheme;
    private String host;
    private Integer port;
    private Integer rtmpPort = 1935;  // RTMP 端口，默认 1935
    private String apiBasePath;
    private String secret;
    private Record record;

    @Data
    public static class Record {
        private String app;
        private Integer type;
        private String customizedPath;
    }
}
